package com.mashibing.apipassenger.controller;

import com.mashibing.internalcommon.dto.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.Response;

/**
 * @author gorkr
 * @date 2022/05/31 09:08
 **/
@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @GetMapping
    public ResponseResult test(){
        log.info("/test");
        return ResponseResult.success("测试页面");
    }

    @PostMapping("/auth-test")
    public ResponseResult authTest(){
        log.info("/test/auth-test");
        return ResponseResult.success("鉴权通过");
    }
}
    